package com.platform.modules.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.platform.modules.mall.entity.MallAccessStatisticsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface MallAccessStatisticsDao extends BaseMapper<MallAccessStatisticsEntity> {

    List<MallAccessStatisticsEntity> pageStatistics(@Param("params")  Map<String, Object> params);

    List<MallAccessStatisticsEntity> goodsAccessStatistics(@Param("params")  Map<String, Object> params);

    List<MallAccessStatisticsEntity> goodsBuyStatistics(@Param("params")  Map<String, Object> params);

    List<MallAccessStatisticsEntity> goodsRefundStatistics(@Param("params")  Map<String, Object> params);

    int userNoActiveStatistics();

    List<MallAccessStatisticsEntity> userAddStatistics(@Param("params")  Map<String, Object> params);

    int userTotalStatistics();

}
